var loginUrl = "/login";
var ajaxLogoutUrl = "/user/ajax/logout";
// 刷新
function startRefresh() {
    location.reload();
}

// 退出
function logout() {
    ajaxPost(ajaxLogoutUrl, {}, function (result) {
        if (result.status == 200) {
            layer.msg(result.msg, {time: 1000}, function () {
                location.href = loginUrl;
            });
        }
    });
}

// 显示icheck样式
function showIcheckCss() {
    // 复选框和单选框样式
    $('.i-checks').iCheck({
        checkboxClass: 'icheckbox_square-green',
        radioClass: 'iradio_square-green',
    });
}

// 显示select2像是
function showSelect2Css() {
    // 下拉选样式
    $(".select2_demo_3").select2({
        allowClear: true
    });
}